import Vue from 'vue';

// import axios from 'axios'
// axios.defaults.withCredentials = true
// Vue.prototype$axios = axios

// 导入 Store
import Vuex from 'vuex';
Vue.use(Vuex);
import createStore from './store/index.js';
const Store = createStore();


// 导入路由相关操作
import VueRouter from 'vue-router';
Vue.use(VueRouter);
import createRouter from './router/main.js';
const Router = createRouter();


// 定义的 util 工具
import createUtil from './libs/util.js';
Vue.prototype.$util = createUtil();

// 引用 moment 时间操作库
import Moment from 'moment';
Vue.prototype.$moment = Moment;


// 引用 moment 时间操作库
import { Toast } from 'vant';
Vue.prototype.$toast = Toast;

//引入element
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

//引入vant
import { RadioGroup, Radio } from 'vant';

Vue.use(Radio);
Vue.use(RadioGroup)

// // 注册全局组件
// import list from "./components/list/list";
// Vue.component("list",list);



// 导入 App.vue
import App from './app.vue';
import Vconsole from "vconsole";
let vConsole = new Vconsole();
new Vue({
    el: '#app',
    store: Store,
    router: Router,
    render: h => h(App)
});
